import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import LoginView from '@/views/LoginView.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: "/login",
      name: "login",
      component: LoginView
    },
    {
      path: '/word',
      name: 'word',
      component: import('../views/WordView.vue')
    },{
      path: "/onlyword",
      name: "OnlyWord",
      component: import('../views/OnlyWordView.vue')
    }
  ],
})

export default router

